package com.fly.feishu.domain.service.impl;

import com.fly.feishu.domain.service.EmpDeptServcie;
import com.fly.feishu.domain.service.common.impl.BaseServiceImpl;
import com.fly.feishu.infrastructure.persistent.mapper.EmpDeptMapper;
import com.fly.feishu.infrastructure.persistent.po.Department;
import com.fly.feishu.infrastructure.persistent.po.EmpDept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpDeptServcieImpl extends BaseServiceImpl<EmpDept, EmpDeptMapper> implements EmpDeptServcie {
    @Override
    public List<Department> getDeptByEmpId(Long empId) {
        return mapper.getDeptByEmpId(empId);
    }
}
